/**
 * Date: 2019/3/1
 * Time: 10:17
 * User: Driss.
 */

class Test1{
    private int i;

    private static int j = printInit("static ClassLoadTest.j initialized");

    static int printInit(String s){
        System.out.println(s);
        return 11;
    }


    private static String s = printStringInit("static ClassLoadTest.s initialized");

    static String printStringInit(String s){
        System.out.println(s);
        return "hello world";
    }

    static{
        System.out.println("static 代码块");
    }

    public  static void testStatic(){}

}


public class ClassLoadTest1 {

    public static void main(String[] args) {
        Test1.testStatic();
    }
}
